package com.bingxue.edu.framework.common.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 包含审计字段的实体类
 * @author panbo
 * @since 2024/6/26
 */
@Getter
@Setter
@Accessors(chain = true)
public abstract class AuditableEntity extends BaseEntity {

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updateUser;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
